//
//  BJTextAndLineView.m
//  DangXiao
//
//  Created by APPLE on 16/12/8.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJTextAndLineView.h"

@implementation BJTextAndLineView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initUI];
    }
    return self;
}

- (void)initUI{
    
    _nameTF = [[UITextField alloc]init];
    _nameTF.placeholder = @"请输入用户名";
    _nameTF.font = FontVlaue(15);
    [self addSubview:_nameTF];
    [_nameTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BILIHEIGHT(5));
        make.left.mas_equalTo(BILIWIDTH(5));
        make.right.mas_equalTo(-BILIWIDTH(5));
        
    }];
    
    _lineLabel = [Utils labelWithTitle:@"" titleFontSize:15 textColor:BlackTextColor backgroundColor:GrayLabel alignment:1];
    [self addSubview:_lineLabel];
    [_lineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_nameTF.mas_bottom).offset(BILIHEIGHT(10));
        make.left.mas_equalTo(BILIWIDTH(0));
        make.right.mas_equalTo(BILIWIDTH(0));
        make.height.mas_equalTo(1);

//        make.size.mas_equalTo(CGSizeMake(BILIWIDTH(70), 1));
    }];
}


@end
